function parseHash (url: string, pattern: string): any {
  // 获取hash
  const hash = url.split('#')[ 1 ]

}

class Route {
  url: URL
  props?: anyObj
  name?: string
  components?: anyObj
  redirect?: string | Location | Function
  alias?: string | Array<string>
  children?: Array<any>
  beforeEnter?: (to: Route, from: Route, next: Function) => void
  meta?: any
  caseSensitive?: boolean = false
  pathToRegexpOptions?: anyObj

  constructor (public path: string, private pattern: string) {
    this.url = new URL(path)
  }

}
